@import '@/styles/utils.scss';

.codeEditor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  height: 100%;
  background-color: #f4f4f5;
  
  :global(.dark) & {
    background-color: #27272a;
  }
}

.editorPanel {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;

  :global(.dark) & {
    background: #18181b;
  }
}

.panelHeader {
  padding: 0.5rem 1rem;
  background: #f4f4f5;
  border-bottom: 1px solid #e4e4e7;
  font-weight: 500;
  color: #52525b;

  :global(.dark) & {
    background: #27272a;
    border-color: #3f3f46;
    color: #a1a1aa;
  }
}

.editor {
  flex: 1;
  min-height: 0;
}

.preview {
  border: none;
  width: 100%;
  height: 100%;
  background: white;

  :global(.dark) & {
    background: #18181b;
    color: white;
  }
}
